package yf.mall.vo.up;


import lombok.Data;

import java.util.Date;

import com.alibaba.excel.annotation.*;

import java.io.Serializable;



import yf.mall.entity.LevelRecordEntity;
import yf.mall.vo.LevelRecordVo;

                                        
/**
 * 级别记录实体
 * 表名 level_record
 *
 *
 * 
 * @date Tue Apr 25 09:50:33 CST 2023
 */
@Data
public class LevelRecordUp implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //
            @ExcelProperty("")
            private Long id;
        
                        //变更用户
            @ExcelProperty("变更用户")
            private Long userId;
        
                        //用户名
            @ExcelProperty("用户名")
            private String userName;
        
                        //用户编号
            @ExcelProperty("用户编号")
            private String userCode;
        
                        //当前级别ID
            @ExcelProperty("当前级别ID")
            private Long nowLevelId;
        
                        //当前级别
            @ExcelProperty("当前级别")
            private String nowLevel;
        
                        //级别
            @ExcelProperty("级别")
            private String oldLevel;
        
                        //旧级别ID
            @ExcelProperty("旧级别ID")
            private Long oldLevelId;
        
                        //变更原因
            @ExcelProperty("变更原因")
            private String remark;
        
                        //变更时间
            @ExcelProperty("变更时间")
            private Date time;
        
    
    public LevelRecordUp() {

    }

    public LevelRecordVo toVo() {

        LevelRecordEntity entity = new LevelRecordEntity();
            LevelRecordVo vo = new LevelRecordVo(entity);
                                    entity.setId(id);
            
                                    entity.setUserId(userId);
            
                                    entity.setUserName(userName);
            
                                    entity.setUserCode(userCode);
            
                                    entity.setNowLevelId(nowLevelId);
            
                                    entity.setNowLevel(nowLevel);
            
                                    entity.setOldLevel(oldLevel);
            
                                    entity.setOldLevelId(oldLevelId);
            
                                    entity.setRemark(remark);
            
                                    entity.setTime(time);
            
        
        return  vo;
    }



}
